using System;
using Gtk;
using BanVeTau;

public partial class MainWindow: Gtk.Window
{	
	public MainWindow (): base (Gtk.WindowType.Toplevel)
	{
		Build ();
	}
	
	protected void OnDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}
	protected void OnNewSchedule (object sender, EventArgs e)
	{
		NewBus bus = new NewBus ();
		bus.Show ();
	}

	protected void OnNewTicket (object sender, EventArgs e)
	{
		NewTicket ticket = new NewTicket();
		ticket.Show ();
	}

}
